#include <stdio.h>
#include <stdlib.h>

void func(int *cnt)
{
	printf("In function: 0x%x\n",cnt);
	return;
}

int main()
{
	int n = 11;

	if(n==10)
	{
		printf("n=%d\n",n);
		n += 1;
	}
	else if(n==11)
	{
		printf("n=%d\n",n);
		n +=1;
	}
	else if(n==12)
	{
		printf("n=%d\n",n);
		n = 100;
	}
	else if(n==100)
	{
		printf("n=%d\n",n);
	}

	printf("Out of function: 0x%x\n",&n);
	func(&n);

	return 0;
}
